package edu.nf.waimai.model.order;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nf.db.util.Column;

import java.math.BigDecimal;
import java.time.LocalDateTime;


/***
 * 用户订单实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserOrder {
   //o.order_id, o.u_id,o.rider_id, o.shop_id, o.order_type,s.shop_name, o.total_price, o.order_datetime ,o.order_details
    /**
     * 订单id
     */
    @Column("order_id")
    public String orderId;
    /**
     * 用户id
     */
    @Column("u_id")
    public Integer uid;
    /**
     * 骑手id
     */
    @Column("rider_id")
    public Integer riderId;
    /**
     * 地址id
     */
    @Column("address_id")
    public Integer addressId;
    /**
     * 店铺id
     */
    @Column("shop_id")
    public Integer shopId;
    /**
     * 订单类型
     */
    @Column("order_type")
    public String orderType;
    /**
     * 商家名称
     */
    @Column("shop_name")
    private String shopName;
    /**
     * 商家图片
     */
    @Column("shop_img")
    public String shopImg;
    /**
     * 订单状态
     */
    @Column("order_status")
    public Integer orderStatus;
    /**
     * 总价
     */
    @Column("total_price")
    public BigDecimal totalPrice;

    /**
     * 订单时间
     */
    @Column("order_datetime")
    public LocalDateTime orderDatetime;

    /**
     * 订单备注
     */
    @Column("order_remarks")
    public String orderRemarks;
    /**
     * 订单详情
     */
    @Column("order_details")
    public String orderDetails;
}
